# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：     day120_pyqt5_statusbar
   Description :
   Author :       fuml
   date：          2019/9/20
-------------------------------------------------
   Change Activity:
                   2019/9/20:This program creates a statusbar.
-------------------------------------------------
"""

import  sys
from  PyQt5.QtWidgets import  QMainWindow,QApplication

class Example(QMainWindow):
    def __init__(self):
        super().__init__()
        self.initUI()

    def initUI(self):
        self.statusBar().showMessage('Ready')

        # set gemotry
        self.setGeometry(300, 300, 350, 300)
        self.setWindowTitle('statusbar')
        # self.setWindowIcon(QIcon('web.png'))
        self.show()

if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex = Example()
    sys.exit(app.exec_())